<template>
  <div id="profile">
    <nav-bar class="nav-bar">
      <div slot="center">我的</div>
    </nav-bar>
    <user-info></user-info>
    <account-info></account-info>
    <list-view :listData="orderList"></list-view>
    <list-view :listData="serviceList"></list-view>
  </div>
</template>

<script>

import NavBar from "components/common/navbar/NavBar";

import UserInfo from "./childComps/UserInfo";
import AccountInfo from "@/views/profile/childComps/AccountInfo";
import ListView from "@/views/profile/childComps/ListView";

export default {
  name: "Profile",
  components: {
    ListView,
    AccountInfo,
    UserInfo,
    NavBar
  },
  data() {
    return {
      orderList: [
        {icon: 'message.svg', info: '我的信息'},
        {icon: 'pointer.svg', info: '积分商城'},
        {icon: 'vip.svg', info: '会员卡'},
      ],
      serviceList: [
        {icon: 'cart.svg', info: '我的购物车'},
        {icon: 'shopping.svg', info: '下载购物app'},
      ]
    }
  }
}
</script>

<style scoped>
#profile {
  background-color: #f2f2f2;
}
.nav-bar {
  background-color: var(--color-tint);
  color: #fff;
  font-size: 18px;
}
</style>
